import request from '@/utils/request'
import type { UploadFile } from './types'

/** 上传文件 */
class APICommon {
    static uploadFile(data: FormData) {
        return request<any, ResponseData<UploadFile>>({
            url: '/upload/file',
            method: 'POST',
            headers: {
                'Content-Type': 'multipart/form-data'
            },
            data
        })
    }
}

export default APICommon
